#include <iostream>
using namespace std;
class Account
{   
public:
	Account(long int n,double a):num(n),amount(a)
	{  }
    static void set_rate(double r)     
	{        
		rate = r;     
	}
    static double get_rate()  
	{        
		return rate;    
	}
	void print( ) const    
    {    
         cout<<num<<"\t"<<amount<<"\t"<<rate<<endl;
    }
	double calculate()
    {
        amount += amount * rate * 0.01;
        return amount;
    }

private: 
    static double rate;
    long int num;
    double amount;
};

double Account::rate=0;

int main()
{
    Account ac1(200017,5000),ac2(200018,5000);
	ac1.print();
	ac2.print();
	cout<<endl;
    Account::set_rate(8); 
	cout<<"1：rate ="<<Account::get_rate()<<endl;
    cout<<"1：Amount of the account is "<<ac1.calculate()<<endl;
	ac1.print();
	ac2.print();
	
	cout<<endl;
    Account::set_rate(13);
    cout<<"2：rate ="<<Account::get_rate()<<endl;
	cout<<"2：Amount of the account is "<<ac2.calculate()<<endl;
	ac1.print();
	ac2.print();
    return 0;
}